<template>
  <div class="layout">
    <el-container>
      <el-aside width="200px">
        <Menu></Menu>
      </el-aside>
      <el-container>
        <el-header>
          <Header></Header>
        </el-header>
        <el-main class="el-main">
          <div class="page">
            <router-view />
          </div>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import Header from "../components/layout-header";
import Menu from "../components/layout-menu";
export default {
  components: { Header, Menu },
  setup() {
    return {};
  },
};
</script>

<style lang="less" scoped>
.layout {
  width: 100%;
  height: 100%;
}
.el-header {
  padding: 0;
}
.el-container {
  height: 100%;
}
.el-aside {
  background-color: #0c2135;
  color: #333;
  text-align: center;
}
.el-main {
  background-color: #e9eef3;
  color: #333;
  padding: 10px;
  // height: calc(100% - 48px);
  .page {
    background-color: #fff;
    // padding: 10px;
  }
}
</style>
